import QQMapWX from "/utils/qqmap-wx-jssdk.js";
import { env } from "/main.js";

let qqmapsdk = null;

const initSdk = () => {
  qqmapsdk = new QQMapWX({
    key: env.qqMapSdkKey,
  });
};

export default () => {
  if (!qqmapsdk) initSdk();
  return qqmapsdk;
};
